import java.awt.Color;

public class target {

	private int X = 0, Y = 0, WIDTH = 5, HEIGHT = 5, Speed = 1, size=0;
	private Color Color;

	public target(int X, int Y, int size, int Speed, Color Color) {
		setX(X);
		setY(Y);
		setColor(Color);
		setSize(size);
		setSpeed((Speed == 0) ? 1 : Speed);

		switch (size) {
		case 0:
			setHEIGHT(4);
			setWIDTH(4);
			break;
		case 1:
			setHEIGHT(7);
			setWIDTH(7);
			break;
		case 2:
			setHEIGHT(14);
			setWIDTH(14);
			break;
		case 3:
			setHEIGHT(18);
			setWIDTH(18);
			break;
		case 4:
			setHEIGHT(23);
			setWIDTH(23);
			break;
		}
	}

	public int getX() {
		return X;
	}

	public void setX(int x) {
		X = x;
	}

	public int getY() {
		return Y;
	}

	public void setY(int y) {
		Y = y;
	}

	public int getWIDTH() {
		return WIDTH;
	}

	public void setWIDTH(int width) {
		WIDTH = width;
	}

	public int getHEIGHT() {
		return HEIGHT;
	}

	public void setHEIGHT(int height) {
		HEIGHT = height;
	}

	public Color getColor() {
		return Color;
	}

	public void setColor(Color color) {
		Color = color;
	}

	public int getSpeed() {
		return Speed;
	}

	public void setSpeed(int speed) {
		Speed = speed;
	}

	public int getSize() {
		return size;
	}

	public void setSize(int size) {
		this.size = size;
	}
}
